package com.cp.admin.modular.user.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 聊天群申请表
 * </p>
 *
 * @author lkaeiou123
 * @since 2020-08-31
 */
@TableName("chatgroup_apply")
public class ChatgroupApply extends Model<ChatgroupApply> {

    private static final long serialVersionUID = 1L;

    /**
     * 申请记录ID
     */
    private Long id;
    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 群号
     */
    @TableField("chatgroup_id")
    private Long chatgroupId;
    /**
     * 0未同意 1同意 -1过期
     */
    private Integer status;
    /**
     * 记录创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 过期时间
     */
    @TableField("overdue_time")
    private Date overdueTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getChatgroupId() {
        return chatgroupId;
    }

    public void setChatgroupId(Long chatgroupId) {
        this.chatgroupId = chatgroupId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getOverdueTime() {
        return overdueTime;
    }

    public void setOverdueTime(Date overdueTime) {
        this.overdueTime = overdueTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ChatgroupApply{" +
        "id=" + id +
        ", userId=" + userId +
        ", chatgroupId=" + chatgroupId +
        ", status=" + status +
        ", createTime=" + createTime +
        ", overdueTime=" + overdueTime +
        "}";
    }
}
